﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="StopBitsConverter.xaml.cs" company="R.V.Kasner">
//   Copyright © 2011 R.V.Kasner
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Owen.Terminal.View.Converters
{
    using System;
    using System.IO.Ports;

    public class StopBitsConverter : BaseEnumConverter<StopBits>
    {
        public StopBitsConverter()
            : base(
                new[]
                    {
                        new Tuple<StopBits, string>(StopBits.None, "0"), 
                        new Tuple<StopBits, string>(StopBits.One, "1"), 
                        new Tuple<StopBits, string>(StopBits.OnePointFive, "1,5"), 
                        new Tuple<StopBits, string>(StopBits.Two, "2"), 
                    })
        {
        }
    }
}